<template>
	<view class="template-order">
		<view class="order--wrap" :style="{top: vuex_custom_bar_height + 'px'+'!important'}">
			<view class="justify-content-item tn-margin tn-text-bold tn-text-xl">
				服务管理
			</view>
			<view class="tn-flex tn-flex-wrap tn-margin-bottom">
				<block v-for="(item, index) in bloggerList" :key="index">
					<view class="" style="width: 33.3%;" @click="tn(item.url)">
						<view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center ">
							<view class="tn-radius tn-padding-sm">
								<view class="image-pic" :style="'background-image:url('+ item.img +')'">
									<view class="image-circle">
									</view>
								</view>
								<view class="tn-text-center tn-text-bold tn-padding-top-xs">{{item.name}}</view>
								<view class="tn-text-center tn-text-xs tn-color-gray--dark tn-padding-top-xs">
									{{item.text}}
								</view>
							</view>
						</view>
					</view>
				</block>
			</view>
		</view>
	</view>

</template>

<script>
	import templatePageMixin from '@/libs/mixin/template_page_mixin.js'
	export default {
		mixins: [templatePageMixin],
		data() {
			return {
				bloggerList: [{
					id: 0,
					type: 'image',
					name: '老人档案',
					text: '',
					img: '/static/service1.png',
					url: '/pages/manager/oldList/oldList'
				}, {
					id: 1,
					type: 'image',
					name: '订单管理',
					text: '',
					img: '/static/service2.png',
					url: '/pages/manager/orderList/orderList'
				}, {
					id: 2,
					type: 'image',
					name: '护工管理',
					text: '',
					img: '/static/service3.png',
					url: '/pages/manager/nurserList/nurserList'
				}, {
					id: 3,
					type: 'image',
					name: '服务项目管理',
					text: '',
					img: '/static/service4.png',
					url: '/pages/manager/serviceList/serviceList'
				}],
			}
		},
		created() {

		},
		methods: {
			// 跳转
			tn(e) {
				uni.navigateTo({
					url: e,
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.order {
		&--wrap {
			position: fixed;
			left: 0;
			right: 0;
			width: 100%;
			background-color: inherit;
		}
	}

	.image-circle {
		// padding: 95rpx;
		width: 190rpx;
		height: 190rpx;
		font-size: 40rpx;
		font-weight: 300;
		position: relative;
	}

	.image-pic {
		border: 1rpx solid #F8F7F8;
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border-radius: 10rpx;
	}

	/* 底部安全边距 start*/
	.tn-tabbar-height {
		min-height: 120rpx;
		height: calc(140rpx + env(safe-area-inset-bottom) / 2);
		height: calc(140rpx + constant(safe-area-inset-bottom));
	}
</style>